import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import HomePage from '@/components/home/HomePage'
import ChildOne from '@/components/vue/vue-child-one'
import test3 from '@/components/vue/vue-parent'
import TestOne from '@/components/vue/vue-test-one'
import InputParent from '@/components/componentone/InputParent'
import TestTwo from '@/components/vue/vue-vfor'
import Test from '../view/test'

import DragDiv from '../view/v-drag-div'

import iviewone from '../view/switch-mutex.vue'
import progress from '../view/progress-test.vue'
import multicomponent from '../vuestudy/vue-component.vue'

// mixin 测试
import minxinvueone from '../vuestudy/mixin-test/mixin-vueone.vue'
// 插槽测试
import solttestone from '../vuestudy/solt-test/parentvue-one.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/hello',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/',
      name: 'HomePage',
      component: HomePage
    },
    {
      path: '/testone',
      name: 'TestOne',
      component: TestOne
    },
    {
      path: '/test1',
      name: 'ChildOne',
      component: ChildOne
    },
    {
      path: '/test2',
      name: 'InputParent',
      component: InputParent
    },
    {
      path: '/test3',
      name: 'test3',
      component: test3
    },
    {
      path: '/test4',
      name: 'test3',
      component: TestTwo
    },
    {
      path: '/test5',
      name: 'test5',
      component: iviewone
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    },
    {
      path: '/drag',
      name: 'DragDiv',
      component: DragDiv
    },
    {
      path: '/test6',
      name: 'progress',
      component: progress
    },
    {
      path: '/test7',
      name: 'multicomponent',
      component: multicomponent
    },
    {
      path: '/test8',
      name: 'minxinvueone',
      component: minxinvueone
    },
    {
      path: '/test9',
      name: 'solttestone',
      component: solttestone
    }
  ]
})
